Optimal. Leaf size=28 \[ \frac{\tan ^{-1}\left (\frac{x+1}{\sqrt{3} \sqrt{x^2+2 x+5}}\right )}{\sqrt{3}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0449474, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087 \[ \frac{\tan ^{-1}\left (\frac{x+1}{\sqrt{3} \sqrt{x^2+2 x+5}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In] Int[1/((4 + 2*x + x^2)*Sqrt[5 + 2*x + x^2]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 15.435, size = 31, normalized size = 1.11 \[ \frac{\sqrt{3} \operatorname{atan}{\left (\frac{\sqrt{3} \left (2 x + 2\right )}{6 \sqrt{x^{2} + 2 x + 5}} \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(x**2+2*x+4)/(x**2+2*x+5)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0626008, size = 28, normalized size = 1. \[ \frac{\tan ^{-1}\left (\frac{x+1}{\sqrt{3} \sqrt{x^2+2 x+5}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In] Integrate[1/((4 + 2*x + x^2)*Sqrt[5 + 2*x + x^2]),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.019, size = 27, normalized size = 1. \[{\frac{\sqrt{3}}{3}\arctan \left ({\frac{\sqrt{3} \left ( 2\,x+2 \right ) }{6}{\frac{1}{\sqrt{{x}^{2}+2\,x+5}}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(x^2+2*x+4)/(x^2+2*x+5)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{\sqrt{x^{2} + 2 \, x + 5}{\left (x^{2} + 2 \, x + 4\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(x^2 + 2*x + 5)*(x^2 + 2*x + 4)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.274123, size = 51, normalized size = 1.82 \[ \frac{1}{3} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3} \sqrt{x^{2} + 2 \, x + 5}{\left (x + 1\right )} - \frac{1}{3} \, \sqrt{3}{\left (x^{2} + 2 \, x + 4\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(x^2 + 2*x + 5)*(x^2 + 2*x + 4)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{\left (x^{2} + 2 x + 4\right ) \sqrt{x^{2} + 2 x + 5}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x**2+2*x+4)/(x**2+2*x+5)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.265977, size = 70, normalized size = 2.5 \[ -\frac{1}{3} \, \sqrt{3} \arctan \left (-\frac{1}{3} \, \sqrt{3}{\left (x - \sqrt{x^{2} + 2 \, x + 5} + 2\right )}\right ) + \frac{1}{3} \, \sqrt{3} \arctan \left (-\frac{1}{3} \, \sqrt{3}{\left (x - \sqrt{x^{2} + 2 \, x + 5}\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(sqrt(x^2 + 2*x + 5)*(x^2 + 2*x + 4)),x, algorithm="giac")
[Out]